from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', 'accounts.views.home', name='home'),
	url(r'^accounts/', include('accounts.urls')), 
	url(r'^books/', include('books.urls')), 
	url(r'^readers/', include('readers.urls')), 
	url(r'^msgs/', include('msgs.urls')), 
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += staticfiles_urlpatterns()
